package com.elves.auth.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.LinkedHashMap;

@Service
@Slf4j
public class CommonService {

    public  static LinkedHashMap<Integer, Object> rowToMap(Object obj) {
        if (obj instanceof java.util.LinkedHashMap) {
            return (LinkedHashMap<Integer, Object>) obj;
        } else {
            log.warn("解析错误");
            return null;
        }
    }

}
